package com.sl.au.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.sl.au.entity.Comment;
import com.sl.au.entity.EventReport;
import com.sl.au.entity.User;

public interface CommentRepository extends JpaRepository<Comment, String> {
	
	@Query(" select a from Comment a where a.eventReport.id = ?1 order by a.createTime asc")
	List<Comment> findCommentByEventReportId(String eventReportId);
}